import { request } from '@/utils'
function getMessageListApi() {
  return request({
    url: 'yt/getmsgList',
    method: 'GET',
  })
}
function submitMessageApi(data: any) {
  return request({
    url: 'yt/postmsg',
    method: 'POST',
    data,
  })
}
function delMessageApi(data: { id: string }) {
  return request({
    url: 'yt/delmsg',
    method: 'POST',
    data,
  })
}
function likeMessageApi(data: { id: string }) {
  return request({
    url: 'yt/like',
    method: 'POST',
    data,
  })
}
export default {
  getMessageListApi,
  submitMessageApi,
  delMessageApi,
  likeMessageApi,
}
